package org.csu.backofficemanagersys.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

@Data
@TableName("admin_info")
public class Admin {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField(value = "adminname")
    private String adminname;
    private String password;
    private String phone;
    private int authority;

    public Admin(String admin_name, String password, String phone) {
        this.adminname = admin_name;
        this.password = password;
        this.phone = phone;
        this.authority=1;
    }

    public Admin() {

    }
}
